
package com.bulls.demo.hrmsdemo.dao;

import java.util.ArrayList;

import javax.persistence.EntityManager;
import javax.persistence.Query;

import com.bulls.demo.hrmsdemo.constants.ListConstants;
import com.bulls.demo.hrmsdemo.utils.QueryManager;

public class ListDAOImpl implements ListDAO {

	@Override
	public ArrayList fetchEmployeeList(EntityManager entityManager) {
	//	Query fetchEmployeeList = entityManager.createNamedQuery("fetchEmployeeList");
		ArrayList employeeList = QueryManager.executeQuery(ListConstants.employeeListQuery);
		return employeeList;
	}

}
